package cn.kgc.controller;

import cn.kgc.pojo.Supplier;
import cn.kgc.service.SupplierService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
public class ProviderController {

    @Resource
    private SupplierService supplierService;

    @RequestMapping(value = "/queryAllSupplier")
    public String queryAllSupplier(String supplierId,String supplierName,Integer pageNum,Integer pageSize){

        return "jsp/provider/provider";
    }

    @RequestMapping(value = "/addSupplier")
    public String addSupplier(Supplier supplier){
        return null;
    }

    @RequestMapping(value = "/queryByIdSupplier")
    public String queryByIdSupplier(String sid){
        return "jsp/provider/updateprovider";
    }
    @RequestMapping(value = "updateSupplier")
    public String updateSupplier(String sid){
        return null;
    }
    @RequestMapping(value = "/deleteSupplierId")
    public String deleteSupplierId(String sid){
        return null;
    }
}
